package com.example.demo.persistence;


import com.example.demo.domain.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderDao {
    List<Order> getOrdersByUsername(@Param("username") String username);

    Order getOrder(@Param("orderId") int orderId);

    void insertOrder(@Param("order") Order order);

    void insertOrderStatus(@Param("order") Order order);

    Order getOrderByNum(@Param("orderNum") String orderNum);
}
